package pl.edu.agh.neural.simple.activation;

public class LinearActivation implements IActivationFunction {

    private double parameter;

    public LinearActivation(double parameter) {
        this.parameter = parameter;
    }

    @Override
    public double evaluate(double argument) {
        return parameter * argument;
    }

    @Override
    public double evaluateDerivative(double argument) {
        return parameter;
    }
}
